package model_sys

import "wrblog-api-go/app/model"

type SysPost struct {
	PostId   int    `json:"postId" form:"postId" gorm:"primaryKey;autoIncrement"` //岗位id
	PostCode string `json:"postCode" form:"postCode" gorm:"required"`             //岗位编码
	PostName string `json:"postName" form:"postName" gorm:"required"`             //岗位名称
	PostSort int    `json:"postSort" form:"postSort" gorm:"required"`             //岗位排序
	Status   string `json:"status" form:"status" gorm:"required"`                 //状态
}

type SysPostPo struct {
	SysPost
	model.BaseEntity
}

func (SysPostPo) TableName() string {
	return "sys_post"
}

type SelectSysPost struct {
	PostName string `json:"postName" form:"postName"` //岗位名称
	PostCode string `json:"postCode" form:"postCode"` //岗位编码
	Status   string `json:"status" form:"status"`     //状态
	model.SelectBaseEntity
}

type SysPostVo struct {
	SysPost
	model.BaseEntityVo
}
